package com.sc.nft.entity.vo;

import cn.hutool.core.util.DesensitizedUtil;
import cn.hutool.core.util.ObjectUtil;
import io.swagger.annotations.ApiModelProperty;
import jodd.util.StringUtil;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class BusinessCardOrderAdminVO {
    
    @ApiModelProperty("id")
    private Long id;
    
    @ApiModelProperty("订单编号")
    private String orderNo;
    
    @ApiModelProperty("用户昵称")
    private String nickName;
    
    @ApiModelProperty("用户手机号")
    private String userTel;
    
    @ApiModelProperty("订单金额")
    private BigDecimal buyPrice;
    
    @ApiModelProperty("下单时间")
    private String orderTime;
    
    @ApiModelProperty("付款时间")
    private String payTime;
    
    public void setUserTel(String userTel){
        if(StringUtil.isBlank(userTel)){
            this.userTel = userTel;
        }else {
            this.userTel = DesensitizedUtil.mobilePhone(userTel);
        }
    }
    
}
